package com.zmn.plat.services.impl.msg.receive.staff.conf;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.msg.receive.staff.conf.MsgReceiveStaffConf;
import com.zmn.plat.model.entity.msg.receive.staff.conf.MsgReceiveStaffConfQuery;
import com.zmn.plat.model.vo.msg.receive.staff.MsgReceiveStaffConfVO;
import com.zmn.plat.persistence.interfaces.msg.receive.staff.conf.MsgReceiveStaffConfDao;
import com.zmn.plat.services.interfaces.msg.receive.staff.conf.MsgReceiveStaffConfService;

@Service
public class MsgReceiveStaffConfServiceImpl implements MsgReceiveStaffConfService {

    @Resource
    MsgReceiveStaffConfDao msgReceiveStaffConfDao;

    @Override
    public MsgReceiveStaffConf findByKey(Integer id) {
        return msgReceiveStaffConfDao.findByKey(id);
    }

    @Override
    public List<MsgReceiveStaffConfVO> listPageByQuery(MsgReceiveStaffConfQuery query) {
        int count = countByQuery(query);
        query.setTotalCount(count);
        return msgReceiveStaffConfDao.listPageByQuery(query);
    }

    @Override
    public List<MsgReceiveStaffConf> listByQuery(MsgReceiveStaffConfQuery query) {
        return msgReceiveStaffConfDao.listByQuery(query);
    }

    @Override
    public List<MsgReceiveStaffConf> listAll() {
        return msgReceiveStaffConfDao.listAll();
    }

    @Override
    public Integer countByQuery(MsgReceiveStaffConfQuery query) {
        return msgReceiveStaffConfDao.countByQuery(query);
    }

    @Override
    public Integer updateByKey(MsgReceiveStaffConf msgReceiveStaffConf) {
        return msgReceiveStaffConfDao.updateByKey(msgReceiveStaffConf);
    }

    @Override
    public Integer insert(MsgReceiveStaffConf msgReceiveStaffConf) {
        return msgReceiveStaffConfDao.insert(msgReceiveStaffConf);
    }

    @Override
    public Integer deleteByKey(Integer id) {
        return msgReceiveStaffConfDao.deleteByKey(id);
    }

}